package com.anrong.wulansdk.sdk.utils;

import com.anrong.wulansdk.sdk.WLData;

import android.util.Log;

public class MyLogcat {
	/***
	 * log的key
	 */
	private static String key = "wulan";

	public static void log(String s) {
		if (isLog()) {
			Log.d(key, s);
		}
	}

	public static void e(String s) {
		if (isLog()) {
			Log.e(key, s);
		}
	}

	public static void i(String s) {
		if (isLog()) {
			Log.i(key, s);
		}
	}

	public static void w(String s) {
		if (isLog()) {
			Log.w(key, s);
		}
	}

	public static void v(String s) {
		if (isLog()) {
			Log.v(key, s);
		}
	}
	
	private static boolean isLog(){
		if (WLData.getConfig() != null) {
			return WLData.getConfig().getshowLog();
		}
		return false;
	}
}
